% 
% TODO: Write Documentation 
% 


\name{rollingApply}
\alias{rollingApply}
\title{rolling function apply}
\description{
applies a function to a specific range of a vector and then rolls the function over the whole vector
}
\usage{
rollingApply(x,nLag,f,...)
}
\arguments{
\item{x}{a numeric vector containing the date}
\item{nLag}{a numerical value which gives the length of history used}
\item{f}{the applied function}
\item{...}{additional arguments to the function}
}
\seealso{
\code{\link{as.Date}}.
}
\examples{
x <- rnorm(1000)
ma <- rollingApply(x,100,mean)
plot(ma)
}
\keyword{chron}

